package com.xrui.hbase;

/**
 * Constants used by Database API.
 */
public final class Constants {
    /**
     * Default Database instance name.
     */
    public static final String DEFAULT_INSTANCE_NAME = "default";

    /**
     * Default Database HBaseURI, pointing to the default Database cluster.
     */
    public static final String DEFAULT_HBASE_URI = "hbase://.env";

    /**
     * Default Database HBaseURI with instance specified as 'default'.
     */
    public static final String DEFAULT_INSTANCE_URI =
        String.format("%s/%s", DEFAULT_HBASE_URI, DEFAULT_INSTANCE_NAME);

    /**
     * Default Database HBaseURI, as built by HBaseURI.newBuilder().build().
     */
    public static final String DEFAULT_URI = DEFAULT_INSTANCE_URI;

    public static final String ROW_KEY_FIELD_NAME = "RowKey";
    public static final String COLUMN_NAME_FIELD_NAME = "ColumnName";
    public static final String TIMESTAMP_FIELD_NAME = "Timestamp";

    public static final long END_OF_TIME = Long.MAX_VALUE;
    public static final long BEGINNING_OF_TIME = 0;

    // Need to be less than Long.MAX_VALUE because the default timestamp range for a HBa create
    // excludes Long.MAX_VALUE.

    /**
     * Utility classes cannot be instantiated.
     */
    private Constants() {
    }
}
